package com.example.mapstruct.controller;

import com.example.mapstruct.vo.PayVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class controller {
//    @Autowired
//    private TestMapper testMapper;

    @PostMapping("/add")
    public String add(@RequestBody PayVO payVO) {
//        LevelEnum levelEnum = testMapper.toEnum(DisableStatus.able_status);
        return "ok";
    }

    @RequestMapping("/hello")
    public String hello() {
//        LevelEnum levelEnum = testMapper.toEnum(DisableStatus.able_status);
        return "ok";
    }
}
